package oj;

import java.util.Scanner;

/**
 * @author 郝文雪
 * @date 2022/7/18 22:39
 * @Description Test
 */
public class Day20字符串反转 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            String str=sc.nextLine();
            StringBuilder sb=new StringBuilder();
            for(int i=0;i<str.length();i++){
                sb.append(str.charAt(i));
            }
            sb.reverse();
            System.out.println(sb.toString());
        }
    }
}
